package com.hzx.demo.activity;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.PersistableBundle;
import android.support.v7.app.AppCompatActivity;

import com.hzx.demo.util.Entry;

/**
 * Created by ke on 16-5-16.
 */
@Entry(desc = "一个简单的测试类", createTime = "2016-05-16, 20:46")
public class TestActivity extends AppCompatActivity{
    @SuppressWarnings("unused")
    private static final String TAG = "TestActivity";

    @Override
    public void onCreate(Bundle savedInstanceState, PersistableBundle persistentState) {
        super.onCreate(savedInstanceState, persistentState);
    }

    @Override
    protected void onResume() {
        super.onResume();
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                setResult(Activity.RESULT_OK);
                finish();
            }
        }, 2000);
    }
}
